package com.xuecheng.content.api.controller;

import com.xuecheng.content.model.dto.CourseCategoryTreeDto;
import com.xuecheng.content.services.service.CourseCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author:王亚栋
 * @Date: 2023/7/7 下午5:15
 * @Version:1.0
 * 课程分类
 */
@RestController
@Api(value = "课程分类管理接口",tags = "课程分类管理接口")
public class CourseCategoryController {

    @Autowired
    private CourseCategoryService courseCategoryService;


    @ApiOperation("课程分类查询接口")
    @GetMapping("/course-category/tree-nodes")
    public List<CourseCategoryTreeDto> queryTreeNodes(){

        return courseCategoryService.selectTreeNodes("1");
    }
}
